package com.jdone.compus.dto;

import lombok.Data;

import java.math.BigDecimal;

@Data
public class DayStatusStatsDTO {
    private String period;
    private Long paidTotal;
    private BigDecimal paidTotalAmount;
    private Long usedTotal;
    private BigDecimal usedTotalAmount;
    private Long cancelledTotal;
    private BigDecimal cancelledTotalAmount;

    // 构造器、getter/setter 省略 — 下面给一个全参构造作为示例
    public DayStatusStatsDTO(String period,
                             Long createdTotal, BigDecimal createdTotalAmount,
                             Long usedTotal, BigDecimal usedTotalAmount,
                             Long cancelledTotal, BigDecimal cancelledTotalAmount) {
        this.period = period;
        this.paidTotal = createdTotal;
        this.paidTotalAmount = createdTotalAmount;
        this.usedTotal = usedTotal;
        this.usedTotalAmount = usedTotalAmount;
        this.cancelledTotal = cancelledTotal;
        this.cancelledTotalAmount = cancelledTotalAmount;
    }
}

